/**
 * 获取用户信息
 */
export default () => new Promise((resolve, reject) => {
  uni.getUserInfo({
    provider: 'weixin',
    success(infoRes) {
      console.log('infoRes :>> ', infoRes);
      resolve([null, infoRes]);
    },
    fail(error) {
      // eslint-disable-next-line prefer-promise-reject-errors
      reject([error]);
    },
  });
});
